package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the PURCHASE_RETURN_DETAILS database table.
 * 
 */
@Entity
@Table(name="PURCHASE_RETURN_DETAILS")
@NamedQuery(name="PurchaseReturnDetail.findAll", query="SELECT p FROM PurchaseReturnDetail p")
public class PurchaseReturnDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PURCHASE_RETURN_DETAILS_ID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PURCHASE_RETURN_DETAILS_ID_GENERATOR")
	private long id;

	@Column(name="\"COUNT\"")
	private BigDecimal count;

	@Column(name="\"MONEY\"")
	private BigDecimal money;

	private String reason;

	private String remarks;

	//bi-directional many-to-one association to PurchaseReturn
	@ManyToOne
	@JoinColumn(name="RETURN_ID")
	private PurchaseReturn purchaseReturn;

	public PurchaseReturnDetail() {
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public BigDecimal getCount() {
		return this.count;
	}

	public void setCount(BigDecimal count) {
		this.count = count;
	}

	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public PurchaseReturn getPurchaseReturn() {
		return this.purchaseReturn;
	}

	public void setPurchaseReturn(PurchaseReturn purchaseReturn) {
		this.purchaseReturn = purchaseReturn;
	}

}